﻿using System.Collections.Generic;
using Hotel.Vendor.InterfacePlatformManage.Data.HTicketData;
using Hotel.Vendor.InterfacePlatformManage.Entity.HTicketEntity;
using System.Data;
using HTicket.Entity;

namespace Hotel.Vendor.InterfacePlatformManage.Business.HTicketBusiness
{
    public class HotelInterfaceTaskListProcessBusiness
    {

        /// 根据GroupID获取Project列表
        /// </summary>
        /// <param name="groupID"></param>
        /// <returns></returns>
        public static List<HotelInterface_TaskProject> GetProjectList(string groupID)
        {
            return HotelInterfaceTaskListProcess.GetProjectList(groupID);
        }

        /// <summary>
        /// 根据projectID查询相关信息
        /// </summary>
        /// <param name="projectID"></param>
        //public static ProjectViewModel GetGroupByProjectID(int projectID)
        //{
        //    return HotelInterfaceTaskListProcess.GetGroupByProjectID(projectID);
        //}


        /// <summary>
        /// 根据GroupID获取Project列表
        /// </summary>
        /// <param name="groupID"></param>
        /// <returns></returns>
        public static List<ChartSet> GetChartList(string groupID, string startTime, string endTime)
        {
            return HotelInterfaceTaskListProcess.GetChartList(groupID, startTime, endTime);
        }

        /// <summary>
        /// 根据EId获取用户相关信息
        /// </summary>
        /// <param name="eID"></param>
        /// <returns></returns>
        public static UserViewModel GetUserInfoByID(string eID)
        {
            return HotelInterfaceTaskListProcess.GetUserInfoByID(eID);
        }

        /// <summary>
        /// 通过TaskID获取Task信息
        /// </summary>
        /// <param name="taskID"></param>
        /// <returns></returns>
        public static HotelInterface_TaskListProcess GetTaskListByTaskID(string taskID)
        {
            return HotelInterfaceTaskListProcess.GetTaskListByTaskID(taskID);
        }

        /// <summary>
        /// 获取TaskList列表
        /// </summary>
        /// <returns></returns>
        public static List<HotelInterface_TaskListProcess> GetALLTaskList(TaskSearchConditionEntity searchEntity)
        {
            return HotelInterfaceTaskListProcess.GetALLTaskList(searchEntity);
        }

        /// <summary>
        /// 获取TaskList个数
        /// </summary>
        /// <returns></returns>
        public static int GetALLTaskListCountByGroupID(string groupID)
        {
            return HotelInterfaceTaskListProcess.GetALLTaskListCountByGroupID(groupID);
        }

        /// <summary>
        /// 新增Task
        /// </summary>
        /// <param name="id"></param>
        /// <param name="xmlConfig"></param>
        /// <returns></returns>
        public static string InsertTaskListProcess(HotelInterface_TaskListProcess taskEntity)
        {
            return HotelInterfaceTaskListProcess.InsertTaskListProcess(taskEntity);
        }

        /// <summary>
        /// 新增TaskContent
        /// </summary>
        /// <param name="taskContentEntity"></param>
        public static void InsertTaskListProcessContentLog(HotelInterfaceTaskListProcessContentEntity taskContentEntity)
        {
            HotelInterfaceTaskListProcess.InsertTaskListProcessContentLog(taskContentEntity);
        }

        /// <summary>
        /// 新增TaskContent
        /// </summary>
        /// <param name="taskContentEntity"></param>
        public static bool UpdateHotelInterface_TaskListProcess(HotelInterface_TaskListProcess listProcess)
        {
            return HotelInterfaceTaskListProcess.UpdateHotelInterface_TaskListProcess(listProcess);
        }

        /// <summary>
        /// 根据ProjectID查询EmailReceive
        /// </summary>
        /// <param name="projectID"></param>
        /// <returns></returns>
        public static List<HotelInterface_TaskRoleRescource> GetRoleResourceByProjectID(string projectID)
        {
            return HotelInterfaceTaskListProcess.GetRoleResourceByProjectID(projectID);
        }

        /// <summary>
        /// 根据TaskID得到Task信息
        /// </summary>
        /// <param name="taskID"></param>
        /// <returns></returns>
        public static List<HotelInterfaceTaskListProcessContentEntity> GeTaskContentByTaskID(TaskSearchConditionEntity searchEntity)
        {
            return HotelInterfaceTaskListProcess.GeTaskContentByTaskID(searchEntity);
        }

        /// <summary>
        /// 根据GroupID获取用户信息
        /// </summary>
        /// <param name="groupID"></param>
        /// <returns></returns>
        public static List<HotelInterface_TaskUserInfo> GetUserInfoByGroupId(string groupID)
        {
            return HotelInterfaceTaskListProcess.GetUserInfoByGroupId(groupID);
        }
    }
}
